344. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-05-13 09:09:14 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

344.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/web/jsjquery.floatelement.js2019-11-20 05:40:36 +0000
2/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/web/jsjquery.floatelement.js2019-11-20 05:40:36 +0000

344.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged1156
Changed00
Inserted00
Removed00

344.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

344.4 Active regular expressions

No regular expressions were active.

344.5 Comparison detail

1 (function (factory) { 1 (function (factory) {
2     'use strict'; 2     'use strict';
3  3 
4     if (typeof define === 'function' && define.amd) { 4     if (typeof define === 'function' && define.amd) {
5         define([ 5         define([
6             'jquery' 6             'jquery'
7         ], factory); 7         ], factory);
8     } else { 8     } else {
9         factory(window.jQuery); 9         factory(window.jQuery);
10     } 10     }
11 }(function ($) { 11 }(function ($) {
12     'use strict'; 12     'use strict';
13  13 
14     var $window = $(window); 14     var $window = $(window);
15  15 
16     $.fn.themePluginFloatElement = function(options) { 16     $.fn.themePluginFloatElement = function(options) {
17         var settings = { 17         var settings = {
18             startPos: "top", 18             startPos: "top",
19             speed: 3, 19             speed: 3,
20             horizontal: false, 20             horizontal: false,
21             transition: false 21             transition: false
22         }; 22         };
23         var $el, $options; 23         var $el, $options;
24  24 
25         function initialize(t, options) { 25         function initialize(t, options) {
26             return t.data("__floatElement") ? this : ($el = t, 26             return t.data("__floatElement") ? this : ($el = t,
27             setData(), 27             setData(),
28             setOptions(options), 28             setOptions(options),
29             build(), 29             build(),
30             this) 30             this)
31         } 31         }
32  32 
33         function setData() { 33         function setData() {
34             return $el.data("__floatElement") 34             return $el.data("__floatElement")
35         } 35         }
36  36 
37         function setOptions(options) { 37         function setOptions(options) {
38             return $options = $.extend(!0, {}, settings, options, { 38             return $options = $.extend(!0, {}, settings, options, {
39                 wrapper: $el 39                 wrapper: $el
40             }) 40             })
41         } 41         }
42  42 
43         function build() { 43         function build() {
44             var t, o = $options.wrapper, s = $(window); 44             var t, o = $options.wrapper, s = $(window);
45             return $options.style && o.attr("style", $options.style), 45             return $options.style && o.attr("style", $options.style),
46             s.width() > 767 && ("none" == $options.startPos ? t = "" : "top" == $options.startPos ? (o.css({ 46             s.width() > 767 && ("none" == $options.startPos ? t = "" : "top" == $options.startPos ? (o.css({
47                 top: 0 47                 top: 0
48             }), 48             }),
49             t = "") : (o.css({ 49             t = "") : (o.css({
50                 bottom: 0 50                 bottom: 0
51             }), 51             }),
52             t = "-"), 52             t = "-"),
53             $options.transition && o.css({ 53             $options.transition && o.css({
54                 transition: "ease transform 500ms" 54                 transition: "ease transform 500ms"
55             }), 55             }),
56             movement(t), 56             movement(t),
57             s.on("scroll", function() { 57             s.on("scroll", function() {
58                 movement(t) 58                 movement(t)
59             })) 59             }))
60         } 60         }
61  61 
62         function movement(t) { 62         function movement(t) {
63             var i = $($options.wrapper) 63             var i = $($options.wrapper)
64               , o = $(window) 64               , o = $(window)
65               , s = o.scrollTop() 65               , s = o.scrollTop()
66               , n = 100 * (i.offset().top - s) / o.height(); 66               , n = 100 * (i.offset().top - s) / o.height();
67             $options.horizontal ? i.css({ 67             $options.horizontal ? i.css({
68                 transform: "translate3d(" + t + n / $options.speed + "%, " + t + n / $options.speed + "%, 0)" 68                 transform: "translate3d(" + t + n / $options.speed + "%, " + t + n / $options.speed + "%, 0)"
69             }) : i.css({ 69             }) : i.css({
70                 transform: "translate3d(0, " + t + n / $options.speed + "%, 0)" 70                 transform: "translate3d(0, " + t + n / $options.speed + "%, 0)"
71             }) 71             })
72         } 72         }
73  73 
74         initialize(this, options); 74         initialize(this, options);
75  75 
76         return this; 76         return this;
77     } 77     }
78 })); 78 }));